#define _CRT_SECURE_NO_WARNINGS
bool canPermutePalindrome(char* s) {
    int str[256] = { 0 };
    int len = strlen(s);
    for (int i = 0; i < len; ++i)
    {
        str[s[i]] += 1;
    }
    int count = 0;

    for (int i = 0; i < 256; i++)
    {
        if (str[i] % 2 == 1)
        {
            ++count;
        }
        if (count > 1)
        {
            return false;
        }
    }
    return true;
}

bool CheckPermutation(char* s1, char* s2) {
    char* str1[36] = { 0 };
    char* str2[36] = { 0 };

    int len1 = strlen(s1);
    int len2 = strlen(s2);
    if (len1 != len2)
        return false;

    for (int i = 0; i < len1; ++i)
    {
        str1[s1[i] - 'a'] += 1;

    }
    for (int i = 0; i < len1; ++i)
    {
        str2[s2[i] - 'a'] += 1;

    }
    for (int i = 0; i < 36; i++)
    {
        if (str2[i] != str1[i])
        {
            return false;
        }
    }
    return true;
}